<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>退出页面</title>
</head>
<body>
<%
	session.invalidate();
%>
<p><span id="time">5</span>秒后自动跳转到登录页面.如果未能跳转，<a href="index.jsp" title="点击访问">请点击</a>。</p></p>
<script type="text/javascript">  
    delayURL();   
    function delayURL() {
        var delay = document.getElementById("time").innerHTML;
 var t = setTimeout("delayURL()", 1000);
        if (delay > 0) {
            delay--;
            document.getElementById("time").innerHTML = delay;
        } else {
     		clearTimeout(t); 
            window.location.href = "index.jsp";
        }       
    }
   </script>
</body>
</html>